package pe.edu.unmsm.fisi.sisconteg.repository.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import pe.edu.unmsm.fisi.sisconteg.domain.model.OtroEstudio;
import pe.edu.unmsm.fisi.sisconteg.repository.dao.OtroEstudioDAO;

@Repository
public class OtroEstudioDAOImpl implements OtroEstudioDAO {

	@Autowired
	private SessionFactory sessionFactory;
	
	@Override
	public void crear(OtroEstudio otroEstudio) throws DataAccessException {
		sessionFactory.getCurrentSession().persist(otroEstudio);
	}

}
